package kr.hkit.powerjava.chapter11.Programming;

public class Food {

	private double cal;//칼로리
	private int price;//가격
	private double weight;//중량
	
	
	public Food() {
	}

	public Food(int price, double weight) {
		this.price = price;
		this.weight = weight;
	}

	public Food(double cal, int price, double weight) {
		this.cal = cal;
		this.price = price;
		this.weight = weight;
	}
	
	//아래로는 접근자 설정자

	public double getCal() {
		return cal;
	}

	public void setCal(double cal) {
		this.cal = cal;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}
		
}
